<?php
require_once('LoginClass.php');
  
$Login = new Login();

if(!isset($_POST['submit']))
{
    header("../page/HOME.php");    
}
else {
    
    $username = $Login->EscapeString($_POST['username']);
    $password = $Login->EscapeString($_POST['password']);
    
    $Login->CheckLogin($username,$password);    
}

$Login->Disconnect();
 
?>